package com.sc.nft.service.impl;

import com.sc.nft.dao.UserSignInDao;
import com.sc.nft.entity.UserSignIn;
import com.sc.nft.service.UserSignInService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 张超
* @description 针对表【sc_user_sign_in(用户签到表)】的数据库操作Service实现
* @createDate 2024-06-04 13:29:51
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class UserSignInServiceImpl implements UserSignInService {

    private final UserSignInDao userSignInDao;


    @Override
    public Integer getSupplementarySignatureCount(Long userId, Long activityBasicsId) {
        return userSignInDao.getSupplementarySignatureCount(userId,activityBasicsId);
    }

    @Override
    public List<UserSignIn> getSignInTimeByActivityBasicsId(Long id) {
        return userSignInDao.getSignInTimeByActivityBasicsId(id);
    }

    @Override
    public List<UserSignIn> getSignInTimeByActivityBasicsIdAndUserId(Long activityBasicsId, Long userId) {
        return userSignInDao.getSignInTimeByActivityBasicsIdAndUserId(activityBasicsId,userId);
    }
}




